﻿using Inovout.Data.Domain;
using KuaJing.People.Domain;
using KuaJing.Security.Domain;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;


namespace KuaJing.Organization.Domain
{
    partial class Employee : DataObject
    {
        public Employee()
        {
            this.Positions = new HashSet<Position>();
            this.Organizations = new HashSet<OrganizationUnit>();
        }
        public virtual Person Person { get; set; }
        [DataProperty("办公电话", DataType.Text, null, false, 0, 99)]
        public virtual string OfficePhone { get; set; }
        [DataProperty("状态", DataType.Text, null, false, null, null)]
        [UIHint("Enum")]
        public virtual EmployeeStatus Status { set; get; }
        [DataProperty("部门", DataType.Text, null, false, null, null)]
        [Select(SelectType.ComboTree, "Name")]
        public virtual ISet<OrganizationUnit> Organizations { get; set; }
        [DataProperty("岗位", DataType.Text, null, true, null, null)]
        public virtual ISet<Position> Positions { get; set; }

        public virtual string Photo { get; set; }
         
    }
}
